package com.aop.staticproxy;

/**
 * @Author: tgy
 * @Date: 2020-08-05 09:47
 */
public class StudentProxy implements Person {

    private Person person = null;

    StudentProxy(Person person){

        this.person = person;
    }

    @Override
    public void eat() {

        System.out.println("eat log");
        person.eat();
    }

    @Override
    public void eat(String food) {

    }

    public static void main(String[] args) {

        StudentProxy studentProxy = new StudentProxy(new Student());

        studentProxy.eat();
    }
}
